package com.richard.room.app.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import java.io.Serializable;

/**
 * @author: Richard
 * @createDate: 2023/8/8 10:18
 * @version: 1.0
 * @description: 描述
 */
@Entity
public class Book implements Serializable {

    @PrimaryKey(autoGenerate = true)
    private Long id;

    /**名称*/
    private String name;

    /**年龄*/
    private int page;

    //唯一id
    private long uid;

    @ColumnInfo(defaultValue = "0")
    private boolean isBig;

    private Boolean isBool;

    @ColumnInfo(defaultValue = "0")
    private boolean small;

    @ColumnInfo(defaultValue = "0")
    public boolean size;

    public boolean isSize() {
        return size;
    }

    public void setSize(boolean size) {
        this.size = size;
    }

    public boolean isSmall() {
        return small;
    }

    public void setSmall(boolean small) {
        this.small = small;
    }

    public boolean isBig() {
        return isBig;
    }

    public void setBig(boolean big) {
        isBig = big;
    }

    public Boolean getBool() {
        return isBool;
    }

    public void setBool(Boolean bool) {
        isBool = bool;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }
}
